// 新增
export interface CreateTableRequestData {
    name: string;
    action: string;
    type: string;
    weight: string | null;
    keyWord: string;
    content: string;
}
// 修改
export interface UpdateTableRequestData {
    id: number;
    name: string;
    action: string;
    weight: string | null;
    type: string;
    keyWord: string;
    content: string;
}

// 查询表单
export interface GetTableRequestData {
    key: string | null;
    type: string | null;
    page: number;
    size: number;
}

export interface GetTableData {
    id: number; // id
    name: string; // 名称
    action: string; // 动作类型
    icon: string; // logo
    content: string; // 地址
    keyWord: string; // 搜索关键词
    type: string; // 类型
    scriptContent: string; // 指令执行脚本
    weight: string; // 排序
}

export type GetTableResponseData = ApiResponseData<{
    content: GetTableData[];
    number: number; // 页码
    size: number; // 页面大小
    totalElements: number; // 总个数
    totalPages: number; // 总页数
}>;
